package com.xyoto.community.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.xyoto.community.po.UserTitlePO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Author: 廖振辉
 * Date: 2021/11/22
 * Description: 评论回复列表->目标回复用户信息
 */
@Data
@ApiModel("评论回复列表->目标回复用户信息Vo")
@NoArgsConstructor
public class TargetReplyUserVO {

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("昵称")
    private String nickname;

    @ApiModelProperty("用户头像")
    private String avatarUrl;

    @ApiModelProperty("头衔")
    @JsonProperty("userTitle")
    private UserTitlePO userTitlePO;

    public TargetReplyUserVO(Integer userId, String nickname) {
        this.userId = userId;
        this.nickname = nickname;
    }

    public TargetReplyUserVO(Integer userId, String nickname, String avatarUrl) {
        this.userId = userId;
        this.nickname = nickname;
        this.avatarUrl = avatarUrl;
    }
}
